package com.migraine.model;

import com.alibaba.fastjson.annotation.JSONField;


import java.util.Date;

public class Rooms {
    private String roomid;

    private String roomname;

    private String creator;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;

    private Integer upperlimits;

    private Integer type;

    private String password;

    private Integer secret;

    public String getRoomid() {
        return roomid;
    }

    public void setRoomid(String roomid) {
        this.roomid = roomid == null ? null : roomid.trim();
    }

    public String getRoomname() {
        return roomname;
    }

    public void setRoomname(String roomname) {
        this.roomname = roomname == null ? null : roomname.trim();
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator == null ? null : creator.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getUpperlimits() {
        return upperlimits;
    }

    public void setUpperlimits(Integer upperlimits) {
        this.upperlimits = upperlimits;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Integer getSecret() { return secret; }

    public void setSecret(Integer secret) { this.secret = secret; }

    @Override
    public String toString() {
        return "Rooms{" +
                "roomid='" + roomid + '\'' +
                ", roomname='" + roomname + '\'' +
                ", creator='" + creator + '\'' +
                ", createtime=" + createtime +
                ", upperlimits=" + upperlimits +
                ", type=" + type +
                ", password='" + password + '\'' +
                ", secret=" + secret +
                '}';
    }
}